package com.mrx.commons.redis.proxy;

import org.springframework.cglib.proxy.MethodInterceptor;

import java.lang.reflect.Method;

/**
 * @author Mr.X
 * @since 2023-04-28 12:40
 **/
public interface IProxyHelper<T> extends MethodInterceptor {

    default RuntimeException handleException(T target, Method method) {
        return new UnsupportedOperationException("暂不支持: " + target.getClass().getName() + "#" + method.getName());
    }

}
